<%--
    Document   : index
    Created on : Mar 10, 2014, 10:54:45 PM
    Author     : Anton Strack
--%>
<form method="POST" action="${config.getPath()}">
    <fieldset>
        <legend>Add Comment</legend>
        <div class="form-group col-lg-12">
            <label class="form-control" for="postName">Comment Name:</label>
            <input class="form-control" id="postName" name="postName" required=""  type="text" value="Re-${bean.name}" /><br />
            <label class="form-control" for="postBody">Comment Body:</label>
            <%--   <textarea class="form-control" id="postBody" name="postBody" required="" rows="5"></textarea><br /> --%>
            <textarea class="form-control ckeditor" id="postBody" name="postBody" required="" rows="10"></textarea><br />
            <input type="hidden" name="postSection" id="postSection" value="full" /><!-- this will eventually either be filled by java script or become a text field to enter a regex that can highlight a specific area of the post -->
            <input type="hidden" name="parentId" id="parentId" value="${bean.id}" />
            <input type="hidden" name="parentTypeId" id="parentTypeId" value="${bean.resourceTypeId}" />

        </div>
        <button class="btn btn-primary" type="submit" name="formSubmit" id="formSubmit" value="create-comment">Save Comment</button>
    </fieldset>
</form>